package cn.com.zero.job.mapper;

import cn.com.zero.job.model.XxlJobGroup;
import cn.com.zero.job.model.XxlJobInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhoupeng
 * @version 1.0.0
 * @Description
 * @createTime 2022-07-15
 */
@Mapper
public interface XxlJobGroupMapper {

    /**
     * 查找当前app的group
     */
    List<XxlJobGroup> findByApp(@Param("appname") String appname);

    /**
     * 添加分组
     */
    int insert(XxlJobGroup info);

}
